/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package interfaz;

import java.awt.Color;
import java.awt.Graphics;
import java.io.File;
import java.sql.SQLException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Enumeration;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.swing.*;
import javax.swing.filechooser.FileNameExtensionFilter;
import main_package.*;

/**
 *
 * @author Dario
 */
public class VentanaSecretario extends javax.swing.JFrame {

    /**
     * Creates new form VentanaSecretario
     */
    private String ruta_convo;
    private Usuario usuario;
    private Plantilla pl;
    private Vector<Criterio> criterios;
    private Vector<Usuario> us;
    private Consultas consultas;

    public VentanaSecretario() {
        initComponents();
    }
    public VentanaSecretario(Usuario user){
        initComponents();        
        this.setVisible(true);        
        this.setTitle("Secretario "+user.getnombre()+" "+user.getapellidos());
        this.setLocationRelativeTo(null);
        if(user.getsexo().equals("Hombre"))bienvenida.setText("Bienvenido\n D. "
                +user.getnombre()+" "+user.getapellidos());
        else bienvenida.setText("Bienvenida\n Dª. "
                +user.getnombre()+" "+user.getapellidos());
        usuario = user;
        criterios=new Vector<Criterio>();
        consultas=user.getConsultas();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        bG = new javax.swing.ButtonGroup();
        bGC = new javax.swing.ButtonGroup();
        jPanel3 = new javax.swing.JPanel();
        Salir = new javax.swing.JButton();
        Opciones = new javax.swing.JPanel();
        NC = new javax.swing.JButton();
        NP = new javax.swing.JButton();
        NU = new javax.swing.JButton();
        AC = new javax.swing.JButton();
        CC = new javax.swing.JButton();
        ES = new javax.swing.JButton();
        IP = new javax.swing.JButton();
        Caja = new javax.swing.JPanel();
        nombre = new javax.swing.JPanel();
        jLabel28 = new javax.swing.JLabel();
        jLabel55 = new javax.swing.JLabel();
        bienvenida = new javax.swing.JLabel();
        NuevaConvo = new javax.swing.JPanel();
        jLabel3 = new javax.swing.JLabel();
        NC_nombre = new javax.swing.JTextField();
        NC_org = new javax.swing.JTextField();
        jLabel4 = new javax.swing.JLabel();
        jButton8 = new javax.swing.JButton();
        NC_ruta = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        jLabel6 = new javax.swing.JLabel();
        NCriterios = new javax.swing.JSpinner();
        jButton9 = new javax.swing.JButton();
        jButton10 = new javax.swing.JButton();
        jButton11 = new javax.swing.JButton();
        NuevoPro = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        NP_convo = new javax.swing.JPanel();
        jLabel8 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        NP_nombre = new javax.swing.JTextField();
        jSeparator1 = new javax.swing.JSeparator();
        jLabel9 = new javax.swing.JLabel();
        NP_ruta = new javax.swing.JTextField();
        NP_selec = new javax.swing.JButton();
        jLabel10 = new javax.swing.JLabel();
        NP_area = new javax.swing.JComboBox();
        NP_nuevopro = new javax.swing.JButton();
        NP_aceptar = new javax.swing.JButton();
        NuevoUsu = new javax.swing.JPanel();
        jLabel11 = new javax.swing.JLabel();
        NU_dni = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        NU_email = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        NU_nombre = new javax.swing.JTextField();
        NU_dominio = new javax.swing.JComboBox();
        jLabel14 = new javax.swing.JLabel();
        NU_rol = new javax.swing.JComboBox();
        jLabel15 = new javax.swing.JLabel();
        NU_apellidos = new javax.swing.JTextField();
        NU_borrar = new javax.swing.JButton();
        NU_aceptar = new javax.swing.JButton();
        AbrirCom = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        AC_convo = new javax.swing.JPanel();
        jSeparator2 = new javax.swing.JSeparator();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        AC_fecha = new javax.swing.JSpinner();
        jLabel20 = new javax.swing.JLabel();
        jSeparator3 = new javax.swing.JSeparator();
        jScrollPane3 = new javax.swing.JScrollPane();
        AC_users = new javax.swing.JPanel();
        AC_sel = new javax.swing.JButton();
        jLabel18 = new javax.swing.JLabel();
        AC_lugar = new javax.swing.JTextField();
        AC_borrar = new javax.swing.JButton();
        AC_aceptar = new javax.swing.JButton();
        CerrarCom = new javax.swing.JPanel();
        jLabel19 = new javax.swing.JLabel();
        jScrollPane4 = new javax.swing.JScrollPane();
        CC_comi = new javax.swing.JPanel();
        jSeparator4 = new javax.swing.JSeparator();
        CC_aceptar = new javax.swing.JButton();
        Esta = new javax.swing.JPanel();
        Inform = new javax.swing.JPanel();
        IP_nombre = new javax.swing.JTextField();
        IP_fecha = new javax.swing.JTextField();
        jLabel21 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        jLabel23 = new javax.swing.JLabel();
        IP_email = new javax.swing.JTextField();
        IP_apellidos = new javax.swing.JTextField();
        jLabel25 = new javax.swing.JLabel();
        IP_editar = new javax.swing.JButton();
        jLabel26 = new javax.swing.JLabel();
        IP_dni = new javax.swing.JTextField();
        jLabel27 = new javax.swing.JLabel();
        jLabel29 = new javax.swing.JLabel();
        jLabel30 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        IP_telefono = new javax.swing.JTextField();
        jLabel32 = new javax.swing.JLabel();
        IP_direccion = new javax.swing.JTextField();
        IP_universidad = new javax.swing.JTextField();
        jLabel24 = new javax.swing.JLabel();
        jLabel33 = new javax.swing.JLabel();
        IP_estudios = new javax.swing.JTextField();
        jSeparator5 = new javax.swing.JSeparator();
        jLabel34 = new javax.swing.JLabel();
        IP_nota = new javax.swing.JTextField();
        jLabel35 = new javax.swing.JLabel();
        IP_entidad = new javax.swing.JTextField();
        jLabel36 = new javax.swing.JLabel();
        IP_cc = new javax.swing.JTextField();
        jLabel37 = new javax.swing.JLabel();
        IP_palabras = new javax.swing.JTextField();
        IP_sexo = new javax.swing.JTextField();
        IP_estado = new javax.swing.JTextField();
        EditInfo = new javax.swing.JPanel();
        IP_nombre1 = new javax.swing.JTextField();
        IP_dia1 = new javax.swing.JTextField();
        jLabel38 = new javax.swing.JLabel();
        jLabel39 = new javax.swing.JLabel();
        jLabel40 = new javax.swing.JLabel();
        IP_email1 = new javax.swing.JTextField();
        IP_apellidos1 = new javax.swing.JTextField();
        jLabel41 = new javax.swing.JLabel();
        IP_dominio1 = new javax.swing.JComboBox();
        IP_guardar = new javax.swing.JButton();
        jLabel42 = new javax.swing.JLabel();
        IP_dni1 = new javax.swing.JTextField();
        IP_año1 = new javax.swing.JTextField();
        jLabel43 = new javax.swing.JLabel();
        jLabel44 = new javax.swing.JLabel();
        jLabel45 = new javax.swing.JLabel();
        jLabel46 = new javax.swing.JLabel();
        jLabel47 = new javax.swing.JLabel();
        IP_sexo1 = new javax.swing.JComboBox();
        IP_estado1 = new javax.swing.JComboBox();
        IP_mes1 = new javax.swing.JTextField();
        IP_telefono1 = new javax.swing.JTextField();
        jLabel48 = new javax.swing.JLabel();
        IP_direccion1 = new javax.swing.JTextField();
        IP_universidad1 = new javax.swing.JTextField();
        jLabel49 = new javax.swing.JLabel();
        jLabel50 = new javax.swing.JLabel();
        IP_estudios1 = new javax.swing.JTextField();
        jSeparator6 = new javax.swing.JSeparator();
        jLabel51 = new javax.swing.JLabel();
        IP_nota1 = new javax.swing.JTextField();
        jLabel52 = new javax.swing.JLabel();
        IP_entidad1 = new javax.swing.JTextField();
        jLabel53 = new javax.swing.JLabel();
        IP_cc1 = new javax.swing.JTextField();
        jLabel54 = new javax.swing.JLabel();
        IP_palabras1 = new javax.swing.JTextField();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        setResizable(false);

        Salir.setText("salir");
        Salir.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                SalirMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap(766, Short.MAX_VALUE)
                .addComponent(Salir)
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(Salir)
                .addContainerGap(15, Short.MAX_VALUE))
        );

        getContentPane().add(jPanel3, java.awt.BorderLayout.NORTH);

        Opciones.setBorder(javax.swing.BorderFactory.createTitledBorder("Opciones"));

        NC.setText("Nueva Convocatoria");
        NC.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                NCMouseClicked(evt);
            }
        });
        NC.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                NCActionPerformed(evt);
            }
        });

        NP.setText("Nuevo Proyecto");
        NP.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                NPMouseClicked(evt);
            }
        });
        NP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                NPActionPerformed(evt);
            }
        });

        NU.setText("Nuevo Usuario");
        NU.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                NUMouseClicked(evt);
            }
        });
        NU.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                NUActionPerformed(evt);
            }
        });

        AC.setText("Abrir Comisión");
        AC.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                ACMouseClicked(evt);
            }
        });
        AC.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ACActionPerformed(evt);
            }
        });

        CC.setText("Cerrar Comisión");
        CC.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                CCMouseClicked(evt);
            }
        });
        CC.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CCActionPerformed(evt);
            }
        });

        ES.setText("Estadísticas");
        ES.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                ESMouseClicked(evt);
            }
        });
        ES.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ESActionPerformed(evt);
            }
        });

        IP.setText("Información Personal");
        IP.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                IPMouseClicked(evt);
            }
        });
        IP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                IPActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout OpcionesLayout = new javax.swing.GroupLayout(Opciones);
        Opciones.setLayout(OpcionesLayout);
        OpcionesLayout.setHorizontalGroup(
            OpcionesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(OpcionesLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(OpcionesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(NU, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(NC, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(NP, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(AC, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(CC, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(ES, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(IP, javax.swing.GroupLayout.DEFAULT_SIZE, 136, Short.MAX_VALUE))
                .addContainerGap())
        );
        OpcionesLayout.setVerticalGroup(
            OpcionesLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(OpcionesLayout.createSequentialGroup()
                .addGap(20, 20, 20)
                .addComponent(NC)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(NP)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(NU)
                .addGap(9, 9, 9)
                .addComponent(AC)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(CC)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(ES)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(IP)
                .addContainerGap())
        );

        getContentPane().add(Opciones, java.awt.BorderLayout.WEST);

        Caja.setLayout(new java.awt.CardLayout());

        nombre.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "  ", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, new java.awt.Color(0, 0, 0)));

        jLabel28.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel28.setForeground(new java.awt.Color(26, 49, 60));
        jLabel28.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel28.setText("Usted se ha registrado como Secretario, por favor");

        jLabel55.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel55.setForeground(new java.awt.Color(26, 49, 60));
        jLabel55.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel55.setText("seleccione una opción para comenzar.");

        bienvenida.setFont(new java.awt.Font("Tahoma", 1, 20)); // NOI18N
        bienvenida.setForeground(new java.awt.Color(26, 49, 60));
        bienvenida.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        bienvenida.setText(" ");

        javax.swing.GroupLayout nombreLayout = new javax.swing.GroupLayout(nombre);
        nombre.setLayout(nombreLayout);
        nombreLayout.setHorizontalGroup(
            nombreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel28, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
            .addGroup(nombreLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(nombreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel55, javax.swing.GroupLayout.DEFAULT_SIZE, 627, Short.MAX_VALUE)
                    .addComponent(bienvenida, javax.swing.GroupLayout.DEFAULT_SIZE, 627, Short.MAX_VALUE))
                .addContainerGap())
        );
        nombreLayout.setVerticalGroup(
            nombreLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(nombreLayout.createSequentialGroup()
                .addGap(89, 89, 89)
                .addComponent(bienvenida)
                .addGap(26, 26, 26)
                .addComponent(jLabel28)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel55)
                .addContainerGap(150, Short.MAX_VALUE))
        );

        Caja.add(nombre, "card2");

        NuevaConvo.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Nueva Convocatoria", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, new java.awt.Color(0, 0, 0)));

        jLabel3.setText("Nombre");

        jLabel4.setText("Organización");

        jButton8.setText("Seleccionar Archivo");
        jButton8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton8MouseClicked(evt);
            }
        });

        jLabel5.setText("Archivo");

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Plantilla", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, null, java.awt.Color.black));

        jLabel6.setText("Nº Criterios");

        NCriterios.setModel(new javax.swing.SpinnerNumberModel(1, 1, 5, 1));

        jButton9.setText("Crear");
        jButton9.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton9MouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(47, 47, 47)
                .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(NCriterios, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jButton9)
                .addGap(21, 21, 21))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(13, 13, 13)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(NCriterios, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jButton9))
                .addContainerGap(13, Short.MAX_VALUE))
        );

        jButton10.setText("Borrar");
        jButton10.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton10MouseClicked(evt);
            }
        });

        jButton11.setText("Aceptar");
        jButton11.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jButton11MouseClicked(evt);
            }
        });

        javax.swing.GroupLayout NuevaConvoLayout = new javax.swing.GroupLayout(NuevaConvo);
        NuevaConvo.setLayout(NuevaConvoLayout);
        NuevaConvoLayout.setHorizontalGroup(
            NuevaConvoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, NuevaConvoLayout.createSequentialGroup()
                .addGap(47, 47, 47)
                .addGroup(NuevaConvoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(NuevaConvoLayout.createSequentialGroup()
                        .addGroup(NuevaConvoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 104, Short.MAX_VALUE)
                            .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(29, 29, 29)
                        .addGroup(NuevaConvoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(NC_nombre, javax.swing.GroupLayout.PREFERRED_SIZE, 298, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(NC_org, javax.swing.GroupLayout.PREFERRED_SIZE, 298, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(NuevaConvoLayout.createSequentialGroup()
                        .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGap(29, 29, 29)
                        .addComponent(NC_ruta, javax.swing.GroupLayout.PREFERRED_SIZE, 298, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(82, 82, 82))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, NuevaConvoLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jButton10, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jButton11, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        NuevaConvoLayout.setVerticalGroup(
            NuevaConvoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(NuevaConvoLayout.createSequentialGroup()
                .addGap(25, 25, 25)
                .addGroup(NuevaConvoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(NC_nombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(NuevaConvoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(NC_org, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel4))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(NuevaConvoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(NC_ruta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel5)
                    .addComponent(jButton8))
                .addGap(18, 18, 18)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 106, Short.MAX_VALUE)
                .addGroup(NuevaConvoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton11)
                    .addComponent(jButton10))
                .addContainerGap())
        );

        Caja.add(NuevaConvo, "card2");

        NuevoPro.setBorder(javax.swing.BorderFactory.createTitledBorder("Nuevo Proyecto"));

        NP_convo.setLayout(new javax.swing.BoxLayout(NP_convo, javax.swing.BoxLayout.Y_AXIS));
        jScrollPane1.setViewportView(NP_convo);

        jLabel8.setText("Selecciona Convocatoria:");

        jLabel7.setText("Nombre");

        jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);

        jLabel9.setText("Archvio");

        NP_selec.setText("Seleccionar Archivo");
        NP_selec.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                NP_selecMouseClicked(evt);
            }
        });

        jLabel10.setText("Área");

        NP_nuevopro.setText("Borrar");
        NP_nuevopro.setToolTipText("");
        NP_nuevopro.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                NP_nuevoproMouseClicked(evt);
            }
        });

        NP_aceptar.setText("Aceptar");
        NP_aceptar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                NP_aceptarMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout NuevoProLayout = new javax.swing.GroupLayout(NuevoPro);
        NuevoPro.setLayout(NuevoProLayout);
        NuevoProLayout.setHorizontalGroup(
            NuevoProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(NuevoProLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(NuevoProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel8)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(NuevoProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(NuevoProLayout.createSequentialGroup()
                        .addGroup(NuevoProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(NuevoProLayout.createSequentialGroup()
                                .addComponent(jLabel10, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(NP_area, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                            .addGroup(NuevoProLayout.createSequentialGroup()
                                .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(NP_nombre))
                            .addGroup(NuevoProLayout.createSequentialGroup()
                                .addComponent(jLabel9, javax.swing.GroupLayout.PREFERRED_SIZE, 54, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(NP_ruta, javax.swing.GroupLayout.PREFERRED_SIZE, 246, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(NP_selec, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 46, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, NuevoProLayout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(NP_nuevopro, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(NP_aceptar, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        NuevoProLayout.setVerticalGroup(
            NuevoProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(NuevoProLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(NuevoProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(NuevoProLayout.createSequentialGroup()
                        .addComponent(jLabel8)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane1))
                    .addGroup(NuevoProLayout.createSequentialGroup()
                        .addGap(40, 40, 40)
                        .addGroup(NuevoProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel7)
                            .addComponent(NP_nombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(NuevoProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel9)
                            .addComponent(NP_ruta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(NP_selec))
                        .addGap(18, 18, 18)
                        .addGroup(NuevoProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel10)
                            .addComponent(NP_area, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 156, Short.MAX_VALUE)
                        .addGroup(NuevoProLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(NP_aceptar)
                            .addComponent(NP_nuevopro)))
                    .addComponent(jSeparator1))
                .addContainerGap())
        );

        Caja.add(NuevoPro, "card2");

        NuevoUsu.setBorder(javax.swing.BorderFactory.createTitledBorder("Nuevo Usuario"));

        jLabel11.setText("DNI");

        jLabel12.setText("Email");

        jLabel13.setText("Nombre");

        NU_dominio.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "@gmail.com", "@hotmail.com", "@hotmail.es" }));
        NU_dominio.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                NU_dominioActionPerformed(evt);
            }
        });

        jLabel14.setText("Rol");

        NU_rol.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Experto", "Adjunto", "Coordinador" }));
        NU_rol.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                NU_rolActionPerformed(evt);
            }
        });

        jLabel15.setText("Apellidos");

        NU_borrar.setText("Borrar");
        NU_borrar.setToolTipText("");
        NU_borrar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                NU_borrarMouseClicked(evt);
            }
        });

        NU_aceptar.setText("Aceptar");
        NU_aceptar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                NU_aceptarMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout NuevoUsuLayout = new javax.swing.GroupLayout(NuevoUsu);
        NuevoUsu.setLayout(NuevoUsuLayout);
        NuevoUsuLayout.setHorizontalGroup(
            NuevoUsuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(NuevoUsuLayout.createSequentialGroup()
                .addGroup(NuevoUsuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(NuevoUsuLayout.createSequentialGroup()
                        .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(NU_borrar, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(NU_aceptar, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(NuevoUsuLayout.createSequentialGroup()
                        .addGap(92, 92, 92)
                        .addGroup(NuevoUsuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(NuevoUsuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(jLabel12))
                            .addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE, 24, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(NuevoUsuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(NuevoUsuLayout.createSequentialGroup()
                                .addGroup(NuevoUsuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(NuevoUsuLayout.createSequentialGroup()
                                        .addComponent(NU_email, javax.swing.GroupLayout.PREFERRED_SIZE, 241, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(8, 8, 8))
                                    .addGroup(NuevoUsuLayout.createSequentialGroup()
                                        .addGroup(NuevoUsuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(NU_nombre)
                                            .addComponent(NU_dni, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                                .addGroup(NuevoUsuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(NU_dominio, javax.swing.GroupLayout.PREFERRED_SIZE, 171, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(NU_apellidos, javax.swing.GroupLayout.PREFERRED_SIZE, 163, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(NU_rol, javax.swing.GroupLayout.PREFERRED_SIZE, 121, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(0, 69, Short.MAX_VALUE)))
                .addContainerGap())
        );
        NuevoUsuLayout.setVerticalGroup(
            NuevoUsuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(NuevoUsuLayout.createSequentialGroup()
                .addGap(62, 62, 62)
                .addGroup(NuevoUsuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel13)
                    .addComponent(NU_nombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel15)
                    .addComponent(NU_apellidos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(NuevoUsuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel11)
                    .addComponent(NU_dni, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(NuevoUsuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel12)
                    .addComponent(NU_email, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(NU_dominio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(NuevoUsuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel14)
                    .addComponent(NU_rol, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 131, Short.MAX_VALUE)
                .addGroup(NuevoUsuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(NU_aceptar)
                    .addComponent(NU_borrar))
                .addContainerGap())
        );

        Caja.add(NuevoUsu, "card3");

        AbrirCom.setBorder(javax.swing.BorderFactory.createTitledBorder("Abrir Comisión"));

        AC_convo.setLayout(new javax.swing.BoxLayout(AC_convo, javax.swing.BoxLayout.Y_AXIS));
        jScrollPane2.setViewportView(AC_convo);

        jSeparator2.setOrientation(javax.swing.SwingConstants.VERTICAL);

        jLabel16.setText("Selecciona Convocatoria:");

        jLabel17.setText("Fecha:");

        AC_fecha.setModel(new javax.swing.SpinnerDateModel());

        jLabel20.setText("Selecciona Usuarios:");

        jSeparator3.setOrientation(javax.swing.SwingConstants.VERTICAL);

        AC_users.setLayout(new javax.swing.BoxLayout(AC_users, javax.swing.BoxLayout.Y_AXIS));
        jScrollPane3.setViewportView(AC_users);

        AC_sel.setText("Seleccionar");
        AC_sel.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AC_selMouseClicked(evt);
            }
        });

        jLabel18.setText("Lugar:");

        AC_borrar.setText("Borrar");
        AC_borrar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AC_borrarMouseClicked(evt);
            }
        });

        AC_aceptar.setText("Aceptar");
        AC_aceptar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                AC_aceptarMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout AbrirComLayout = new javax.swing.GroupLayout(AbrirCom);
        AbrirCom.setLayout(AbrirComLayout);
        AbrirComLayout.setHorizontalGroup(
            AbrirComLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(AbrirComLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(AbrirComLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jLabel16)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 156, Short.MAX_VALUE)
                    .addComponent(AC_sel, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addGap(18, 18, 18)
                .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(AbrirComLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel20)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(AbrirComLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(AbrirComLayout.createSequentialGroup()
                        .addGroup(AbrirComLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jLabel17, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(AC_lugar)
                            .addComponent(AC_fecha, javax.swing.GroupLayout.DEFAULT_SIZE, 175, Short.MAX_VALUE))
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, AbrirComLayout.createSequentialGroup()
                        .addGap(0, 17, Short.MAX_VALUE)
                        .addComponent(AC_borrar, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(AC_aceptar, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        AbrirComLayout.setVerticalGroup(
            AbrirComLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(AbrirComLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(AbrirComLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jSeparator2)
                    .addGroup(AbrirComLayout.createSequentialGroup()
                        .addComponent(jLabel20)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane3))
                    .addComponent(jSeparator3)
                    .addGroup(AbrirComLayout.createSequentialGroup()
                        .addGroup(AbrirComLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(AbrirComLayout.createSequentialGroup()
                                .addComponent(jLabel16)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jScrollPane2))
                            .addGroup(AbrirComLayout.createSequentialGroup()
                                .addComponent(jLabel17)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(AC_fecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(32, 32, 32)
                                .addComponent(jLabel18)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(AC_lugar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(0, 177, Short.MAX_VALUE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(AbrirComLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(AC_sel)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, AbrirComLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(AC_aceptar)
                                .addComponent(AC_borrar)))))
                .addContainerGap())
        );

        Caja.add(AbrirCom, "card4");

        CerrarCom.setBorder(javax.swing.BorderFactory.createTitledBorder("Cerrar Comisión"));

        jLabel19.setText("Selecciona Comsión:");

        CC_comi.setLayout(new javax.swing.BoxLayout(CC_comi, javax.swing.BoxLayout.Y_AXIS));
        jScrollPane4.setViewportView(CC_comi);

        jSeparator4.setOrientation(javax.swing.SwingConstants.VERTICAL);

        CC_aceptar.setText("Aceptar");
        CC_aceptar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                CC_aceptarMouseClicked(evt);
            }
        });

        javax.swing.GroupLayout CerrarComLayout = new javax.swing.GroupLayout(CerrarCom);
        CerrarCom.setLayout(CerrarComLayout);
        CerrarComLayout.setHorizontalGroup(
            CerrarComLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(CerrarComLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(CerrarComLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel19)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 327, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 171, Short.MAX_VALUE)
                .addComponent(CC_aceptar, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        CerrarComLayout.setVerticalGroup(
            CerrarComLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, CerrarComLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(CerrarComLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(CerrarComLayout.createSequentialGroup()
                        .addGap(0, 295, Short.MAX_VALUE)
                        .addComponent(CC_aceptar))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, CerrarComLayout.createSequentialGroup()
                        .addComponent(jLabel19)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jScrollPane4))
                    .addComponent(jSeparator4, javax.swing.GroupLayout.Alignment.LEADING))
                .addContainerGap())
        );

        Caja.add(CerrarCom, "card5");

        Esta.setBorder(javax.swing.BorderFactory.createTitledBorder("Estadísticas"));

        javax.swing.GroupLayout EstaLayout = new javax.swing.GroupLayout(Esta);
        Esta.setLayout(EstaLayout);
        EstaLayout.setHorizontalGroup(
            EstaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 647, Short.MAX_VALUE)
        );
        EstaLayout.setVerticalGroup(
            EstaLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 340, Short.MAX_VALUE)
        );

        Caja.add(Esta, "card6");

        Inform.setBorder(javax.swing.BorderFactory.createTitledBorder("Información Personal"));

        jLabel21.setText("Nombre");

        jLabel22.setText("DNI");

        jLabel23.setText("Email");

        jLabel25.setText("Apellidos");

        IP_editar.setText("Editar");
        IP_editar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                IP_editarMouseClicked(evt);
            }
        });
        IP_editar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                IP_editarActionPerformed(evt);
            }
        });

        jLabel26.setText("Fecha Nacimiento");

        jLabel29.setText("Sexo");

        jLabel30.setText("Estado Civil");

        jLabel31.setText("Telefono");

        jLabel32.setText("Dirección");

        jLabel24.setText("Universidad");

        jLabel33.setText("Estudios");

        jLabel34.setText("Nota");

        jLabel35.setText("Entidad Bancaria");

        jLabel36.setText("CC");

        jLabel37.setText("Palabras Clave");

        javax.swing.GroupLayout InformLayout = new javax.swing.GroupLayout(Inform);
        Inform.setLayout(InformLayout);
        InformLayout.setHorizontalGroup(
            InformLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jSeparator5, javax.swing.GroupLayout.Alignment.TRAILING)
            .addGroup(InformLayout.createSequentialGroup()
                .addGroup(InformLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(InformLayout.createSequentialGroup()
                        .addGroup(InformLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(InformLayout.createSequentialGroup()
                                .addGap(43, 43, 43)
                                .addGroup(InformLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jLabel21, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel22, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel29, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel31, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel32, javax.swing.GroupLayout.DEFAULT_SIZE, 67, Short.MAX_VALUE))
                                .addGap(10, 10, 10)
                                .addGroup(InformLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(InformLayout.createSequentialGroup()
                                        .addGroup(InformLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(IP_nombre)
                                            .addComponent(IP_dni)
                                            .addComponent(IP_telefono, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(IP_sexo))
                                        .addGap(33, 33, 33)
                                        .addGroup(InformLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addGroup(InformLayout.createSequentialGroup()
                                                .addComponent(jLabel25, javax.swing.GroupLayout.DEFAULT_SIZE, 78, Short.MAX_VALUE)
                                                .addGap(18, 18, 18)
                                                .addComponent(IP_apellidos, javax.swing.GroupLayout.PREFERRED_SIZE, 198, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(InformLayout.createSequentialGroup()
                                                .addComponent(jLabel23)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                .addComponent(IP_email))
                                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, InformLayout.createSequentialGroup()
                                                .addComponent(jLabel30, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addGroup(InformLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                                    .addGroup(InformLayout.createSequentialGroup()
                                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                        .addComponent(jLabel27, javax.swing.GroupLayout.PREFERRED_SIZE, 13, javax.swing.GroupLayout.PREFERRED_SIZE))
                                                    .addGroup(InformLayout.createSequentialGroup()
                                                        .addGap(41, 41, 41)
                                                        .addComponent(IP_estado))))
                                            .addGroup(InformLayout.createSequentialGroup()
                                                .addComponent(jLabel26, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(IP_fecha))))
                                    .addComponent(IP_direccion)))
                            .addGroup(InformLayout.createSequentialGroup()
                                .addGap(44, 44, 44)
                                .addGroup(InformLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(InformLayout.createSequentialGroup()
                                        .addGroup(InformLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel37, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jLabel35, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                                    .addGroup(InformLayout.createSequentialGroup()
                                        .addComponent(jLabel24, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(40, 40, 40)))
                                .addGroup(InformLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(InformLayout.createSequentialGroup()
                                        .addComponent(IP_universidad, javax.swing.GroupLayout.PREFERRED_SIZE, 116, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(18, 18, 18)
                                        .addComponent(jLabel33, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(2, 2, 2)
                                        .addComponent(IP_estudios, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(jLabel34, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(IP_nota, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(InformLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                        .addGroup(InformLayout.createSequentialGroup()
                                            .addComponent(IP_entidad, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(18, 18, 18)
                                            .addComponent(jLabel36, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                            .addComponent(IP_cc, javax.swing.GroupLayout.PREFERRED_SIZE, 280, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addComponent(IP_palabras)))))
                        .addGap(0, 31, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, InformLayout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(IP_editar, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        InformLayout.setVerticalGroup(
            InformLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, InformLayout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addGroup(InformLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel21)
                    .addComponent(IP_nombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel25)
                    .addComponent(IP_apellidos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(InformLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel22)
                    .addComponent(IP_fecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel26)
                    .addComponent(jLabel27)
                    .addComponent(IP_dni, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(InformLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel29)
                    .addComponent(jLabel30)
                    .addComponent(IP_sexo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(IP_estado, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(InformLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel31)
                    .addComponent(IP_telefono, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel23)
                    .addComponent(IP_email, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(InformLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(IP_direccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel32))
                .addGap(18, 18, 18)
                .addComponent(jSeparator5, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(InformLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel24)
                    .addComponent(IP_universidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel33)
                    .addComponent(IP_estudios, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(IP_nota, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel34))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(InformLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel37)
                    .addComponent(IP_palabras, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(InformLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel35)
                    .addComponent(IP_entidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel36)
                    .addComponent(IP_cc, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 27, Short.MAX_VALUE)
                .addComponent(IP_editar)
                .addContainerGap())
        );

        Caja.add(Inform, "card7");

        EditInfo.setBorder(javax.swing.BorderFactory.createTitledBorder("Información Personal"));

        jLabel38.setText("Nombre");

        jLabel39.setText("DNI");

        jLabel40.setText("Email");

        jLabel41.setText("Apellidos");

        IP_dominio1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "@gmail.com", "@hotmail.com", "@hotmail.es" }));
        IP_dominio1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                IP_dominio1ActionPerformed(evt);
            }
        });

        IP_guardar.setText("Guardar");
        IP_guardar.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                IP_guardarMouseClicked(evt);
            }
        });
        IP_guardar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                IP_guardarActionPerformed(evt);
            }
        });

        jLabel42.setText("Fecha Nacimiento");

        jLabel43.setText("/");

        jLabel44.setText("/");

        jLabel45.setText("Sexo");

        jLabel46.setText("Estado Civil");

        jLabel47.setText("Telefono");

        IP_sexo1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Hombre", "Mujer" }));

        IP_estado1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Casado", "Soltero", "Divorciado", "Viudo" }));
        IP_estado1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                IP_estado1ActionPerformed(evt);
            }
        });

        jLabel48.setText("Dirección");

        jLabel49.setText("Universidad");

        jLabel50.setText("Estudios");

        jLabel51.setText("Nota");

        jLabel52.setText("Entidad Bancaria");

        jLabel53.setText("CC");

        jLabel54.setText("Palabras Clave");

        javax.swing.GroupLayout EditInfoLayout = new javax.swing.GroupLayout(EditInfo);
        EditInfo.setLayout(EditInfoLayout);
        EditInfoLayout.setHorizontalGroup(
            EditInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jSeparator6, javax.swing.GroupLayout.Alignment.TRAILING)
            .addGroup(EditInfoLayout.createSequentialGroup()
                .addGroup(EditInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(EditInfoLayout.createSequentialGroup()
                        .addGroup(EditInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addGroup(EditInfoLayout.createSequentialGroup()
                                .addGap(43, 43, 43)
                                .addGroup(EditInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jLabel38, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel39, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel45, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel47, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(jLabel48, javax.swing.GroupLayout.DEFAULT_SIZE, 67, Short.MAX_VALUE))
                                .addGap(10, 10, 10)
                                .addGroup(EditInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(EditInfoLayout.createSequentialGroup()
                                        .addGroup(EditInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(IP_nombre1)
                                            .addComponent(IP_dni1)
                                            .addComponent(IP_sexo1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(IP_telefono1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE))
                                        .addGap(33, 33, 33)
                                        .addGroup(EditInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addGroup(EditInfoLayout.createSequentialGroup()
                                                .addComponent(jLabel41, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addGap(18, 18, 18)
                                                .addComponent(IP_apellidos1, javax.swing.GroupLayout.PREFERRED_SIZE, 198, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGroup(EditInfoLayout.createSequentialGroup()
                                                .addComponent(jLabel46, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addGap(38, 38, 38)
                                                .addComponent(IP_estado1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                            .addGroup(EditInfoLayout.createSequentialGroup()
                                                .addComponent(jLabel42, javax.swing.GroupLayout.PREFERRED_SIZE, 107, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(IP_dia1, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                .addComponent(jLabel43, javax.swing.GroupLayout.PREFERRED_SIZE, 13, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(IP_mes1, javax.swing.GroupLayout.PREFERRED_SIZE, 33, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addGap(13, 13, 13)
                                                .addComponent(jLabel44, javax.swing.GroupLayout.PREFERRED_SIZE, 6, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                .addComponent(IP_año1))
                                            .addGroup(EditInfoLayout.createSequentialGroup()
                                                .addComponent(jLabel40)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                                .addComponent(IP_email1, javax.swing.GroupLayout.PREFERRED_SIZE, 143, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(IP_dominio1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                                    .addComponent(IP_direccion1)))
                            .addGroup(EditInfoLayout.createSequentialGroup()
                                .addGap(44, 44, 44)
                                .addGroup(EditInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(EditInfoLayout.createSequentialGroup()
                                        .addComponent(jLabel49, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(IP_universidad1, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(43, 43, 43)
                                        .addComponent(jLabel50, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(IP_estudios1, javax.swing.GroupLayout.PREFERRED_SIZE, 131, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(jLabel51, javax.swing.GroupLayout.PREFERRED_SIZE, 34, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(IP_nota1, javax.swing.GroupLayout.PREFERRED_SIZE, 38, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, EditInfoLayout.createSequentialGroup()
                                        .addGroup(EditInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                            .addComponent(jLabel54, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(jLabel52, javax.swing.GroupLayout.DEFAULT_SIZE, 84, Short.MAX_VALUE))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(EditInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addGroup(EditInfoLayout.createSequentialGroup()
                                                .addComponent(IP_entidad1, javax.swing.GroupLayout.PREFERRED_SIZE, 127, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addGap(18, 18, 18)
                                                .addComponent(jLabel53, javax.swing.GroupLayout.PREFERRED_SIZE, 26, javax.swing.GroupLayout.PREFERRED_SIZE)
                                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                                .addComponent(IP_cc1, javax.swing.GroupLayout.PREFERRED_SIZE, 280, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addComponent(IP_palabras1))))))
                        .addGap(0, 50, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, EditInfoLayout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(IP_guardar, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        EditInfoLayout.setVerticalGroup(
            EditInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, EditInfoLayout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addGroup(EditInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel38)
                    .addComponent(IP_nombre1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel41)
                    .addComponent(IP_apellidos1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(EditInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel39)
                    .addComponent(IP_dia1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel42)
                    .addComponent(IP_año1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel43)
                    .addComponent(jLabel44)
                    .addComponent(IP_dni1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(IP_mes1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(EditInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel45)
                    .addComponent(jLabel46)
                    .addComponent(IP_sexo1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(IP_estado1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(EditInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel47)
                    .addComponent(IP_telefono1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel40)
                    .addComponent(IP_dominio1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(IP_email1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(EditInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(IP_direccion1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel48))
                .addGap(18, 18, 18)
                .addComponent(jSeparator6, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(EditInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel49)
                    .addComponent(IP_universidad1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel50)
                    .addComponent(IP_estudios1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(IP_nota1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel51))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(EditInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel54)
                    .addComponent(IP_palabras1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(EditInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel52)
                    .addComponent(IP_entidad1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel53)
                    .addComponent(IP_cc1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 27, Short.MAX_VALUE)
                .addComponent(IP_guardar)
                .addContainerGap())
        );

        Caja.add(EditInfo, "card7");

        getContentPane().add(Caja, java.awt.BorderLayout.CENTER);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void NCActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_NCActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_NCActionPerformed

    private void NPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_NPActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_NPActionPerformed

    private void NUActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_NUActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_NUActionPerformed

    private void ACActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ACActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_ACActionPerformed

    private void CCActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CCActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_CCActionPerformed

    private void ESActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ESActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_ESActionPerformed

    private void NCMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_NCMouseClicked
        ocultarTodo();
        NC.setBackground(new java.awt.Color(38, 64, 82));
        NC.setForeground(Color.white);
        NuevaConvo.setVisible(true);
    }//GEN-LAST:event_NCMouseClicked

    private void NPMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_NPMouseClicked
        ocultarTodo();
        NP.setBackground(new java.awt.Color(38, 64, 82));
        NP.setForeground(Color.white);
        NuevoPro.setVisible(true);
        try {
            Vector<Convocatoria> vc = consultas.listaConvocatorias();
            for(int i=0; i<vc.size(); i++){
                JRadioButton rb= new JRadioButton();
                rb.setText(vc.get(i).getNombre());
                rb.setMnemonic(vc.get(i).getIdConvocatoria());
                bG.add(rb);
                NP_convo.add(rb);
            }
            
            Vector<Area> va = consultas.listaAreas();
            String [] st = new String [va.size()];
            for(int i=0; i<va.size(); i++){
                st[i]=va.get(i).getnombre();
            }
            NP_area.setModel(new javax.swing.DefaultComboBoxModel(st));
        } catch (SQLException ex) {
            Logger.getLogger(VentanaSecretario.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_NPMouseClicked

    private void IPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IPActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_IPActionPerformed

    private void NUMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_NUMouseClicked
        ocultarTodo();
        NU.setBackground(new java.awt.Color(38, 64, 82));
        NU.setForeground(Color.white);
        NuevoUsu.setVisible(true);
    }//GEN-LAST:event_NUMouseClicked

    private void ACMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ACMouseClicked
        ocultarTodo();
        AC.setBackground(new java.awt.Color(38, 64, 82));
        AC.setForeground(Color.white);
        AbrirCom.setVisible(true);
        try {
            Vector<Convocatoria> vc = consultas.listaConvocatorias();
            for(int i=0; i<vc.size(); i++){
                JRadioButton rb= new JRadioButton();
                rb.setText(vc.get(i).getNombre());
                rb.setMnemonic(vc.get(i).getIdConvocatoria());
                bG.add(rb);
                AC_convo.add(rb);
            }
            
        } catch (SQLException ex) {
            Logger.getLogger(VentanaSecretario.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_ACMouseClicked

    private void CCMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_CCMouseClicked
        ocultarTodo();
        CC.setBackground(new java.awt.Color(38, 64, 82));
        CC.setForeground(Color.white);
        CerrarCom.setVisible(true);
        CC_comi.removeAll();
        Vector<Comision> com = consultas.listaComisionesAbiertas();
        for (int i = 0; i < com.size(); i++) {
            JCheckBox cb = new JCheckBox();
            cb.setText(com.get(i).getNombre() + " en " + com.get(i).getLugar());
            cb.setMnemonic(com.get(i).getIdComision());
            CC_comi.add(cb);
        }
        CC_comi.updateUI();
    }//GEN-LAST:event_CCMouseClicked

    private void ESMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_ESMouseClicked
        ocultarTodo();
        ES.setBackground(new java.awt.Color(38, 64, 82));
        ES.setForeground(Color.white);
        Esta.setVisible(true);
    }//GEN-LAST:event_ESMouseClicked

    private void IPMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_IPMouseClicked
        ocultarTodo();
        IP.setBackground(new java.awt.Color(38, 64, 82));
        IP.setForeground(Color.white);
        IP_nombre.setText(usuario.getnombre()); IP_nombre.setEnabled(false);
        IP_apellidos.setText(usuario.getapellidos()); IP_apellidos.setEnabled(false);
        IP_dni.setText(usuario.getdni()); IP_dni.setEnabled(false);
        IP_fecha.setText(usuario.getfecha_nacimiento()); IP_fecha.setEnabled(false);
        IP_sexo.setText(usuario.getsexo()); IP_sexo.setEnabled(false);
        IP_estado.setText(usuario.getestado_civil()); IP_estado.setEnabled(false);
        IP_telefono.setText(usuario.gettelefono()+""); IP_telefono.setEnabled(false);
        IP_email.setText(usuario.getcorreo()); IP_email.setEnabled(false);
        IP_direccion.setText(usuario.getdireccion()); IP_direccion.setEnabled(false);
        IP_universidad.setText(usuario.getuniversidad()); IP_universidad.setEnabled(false);
        IP_estudios.setText(usuario.getestudios()); IP_estudios.setEnabled(false);
        IP_nota.setText(usuario.getnota()+""); IP_nota.setEnabled(false);
        IP_palabras.setText(usuario.getpalabras()); IP_palabras.setEnabled(false);
        IP_entidad.setText(usuario.getentidad_bancaria()); IP_entidad.setEnabled(false);
        IP_cc.setText(usuario.getcuenta()+""); IP_cc.setEnabled(false);
        Inform.updateUI();       
        Inform.setVisible(true);
    }//GEN-LAST:event_IPMouseClicked

    private void jButton8MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton8MouseClicked
       FileNameExtensionFilter filter = new FileNameExtensionFilter("Archivo PDF","pdf","PDF");
       JFileChooser fileChooser = new JFileChooser();       
       //fileChooser.setFileFilter(filter);
       int result = fileChooser.showOpenDialog(null);
       if ( result == JFileChooser.APPROVE_OPTION){   
           this.ruta_convo = fileChooser.getSelectedFile().getAbsolutePath();
       }
       NC_ruta.setText(ruta_convo);
    }//GEN-LAST:event_jButton8MouseClicked

    private void jButton11MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton11MouseClicked
        if(NC_nombre.getText().equals("") || NC_ruta.getText().equals("") || NC_org.getText().equals("")){
            JOptionPane.showMessageDialog(null, "Faltan datos.");
        }
        else{
            if(criterios.size()!=0){
                try {
                    usuario.agregarConvocatoria();
                    pl.guardar();
                    for(int i=0; i<criterios.size(); i++){
                        criterios.get(i).setPlantilla(pl.getIdPlantilla());
                        criterios.get(i).guardar();
                    }
                    borrarDatosNC();                
                } catch (Exception ex) {
                    Logger.getLogger(VentanaSecretario.class.getName()).log(Level.SEVERE, null, ex);
                }         
            }else{
                JOptionPane.showMessageDialog(null, "Debe crear una plantilla.");
            }            
        }        
    }//GEN-LAST:event_jButton11MouseClicked

    private void jButton10MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton10MouseClicked
        borrarDatosNC();
    }//GEN-LAST:event_jButton10MouseClicked

    private void jButton9MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton9MouseClicked
        pl = new Plantilla(-1, (Integer)NCriterios.getValue(), consultas);
        CritFrame cf = new CritFrame(criterios, pl);
        cf.setVisible(true);
    }//GEN-LAST:event_jButton9MouseClicked

    private void NP_selecMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_NP_selecMouseClicked
        FileNameExtensionFilter filter = new FileNameExtensionFilter("Archivo PDF","pdf","PDF");
       JFileChooser fileChooser = new JFileChooser();       
       //fileChooser.setFileFilter(filter);
       int result = fileChooser.showOpenDialog(null);
       if ( result == JFileChooser.APPROVE_OPTION){   
           this.ruta_convo = fileChooser.getSelectedFile().getAbsolutePath();
       }
       NP_ruta.setText(ruta_convo);
    }//GEN-LAST:event_NP_selecMouseClicked

    private void NP_nuevoproMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_NP_nuevoproMouseClicked
        borrarDatosNP();
    }//GEN-LAST:event_NP_nuevoproMouseClicked

    private void NP_aceptarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_NP_aceptarMouseClicked
        if(NP_nombre.getText().equals("") || NP_ruta.getText().equals("")){
            JOptionPane.showMessageDialog(null, "Faltan datos.");
        }
        else{
            if(bG.getSelection()==null){
                JOptionPane.showMessageDialog(null, "Seleccione una convocatoria.");
            }
            else{
                try {
                    usuario.agregarProyecto();
                    borrarDatosNP();
                } catch (Exception ex) {
                    Logger.getLogger(VentanaSecretario.class.getName()).log(Level.SEVERE, null, ex);
                }                   
            }                              
        }
    }//GEN-LAST:event_NP_aceptarMouseClicked

    private void NU_dominioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_NU_dominioActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_NU_dominioActionPerformed

    private void NU_rolActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_NU_rolActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_NU_rolActionPerformed

    private void NU_borrarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_NU_borrarMouseClicked
        borrarDatosNU();
    }//GEN-LAST:event_NU_borrarMouseClicked

    private void NU_aceptarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_NU_aceptarMouseClicked
        try {
            usuario.agregarUsuario();
        } catch (Exception ex) {
            Logger.getLogger(VentanaSecretario.class.getName()).log(Level.SEVERE, null, ex);
        }        
    }//GEN-LAST:event_NU_aceptarMouseClicked

    private void AC_selMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_AC_selMouseClicked
        AC_users.removeAll();
        us = consultas.listaUsuariosDeUnaConvocatoria(bG.getSelection().getMnemonic());
            for(int i=0; i<us.size(); i++){
                JCheckBox cb= new JCheckBox();
                cb.setText(us.get(i).getnombre()+" "+us.get(i).getapellidos());
                cb.setMnemonic(us.get(i).getdni().hashCode());
                AC_users.add(cb);
                AC_users.updateUI();
            }
    }//GEN-LAST:event_AC_selMouseClicked

    private void AC_borrarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_AC_borrarMouseClicked
        borrarDatosAC();
    }//GEN-LAST:event_AC_borrarMouseClicked

    private void AC_aceptarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_AC_aceptarMouseClicked
        if(AC_lugar.getText()!=""){
            try {
                Vector<Usuario> vu = new Vector<Usuario>();
                for(int i=0; i<AC_users.getComponentCount();i++){
                    if(((JCheckBox)AC_users.getComponent(i)).isSelected()){
                        vu.add(us.get(i));
                    }
                }
                if(vu.size()>0){
                    usuario.abrirComision(vu);
                    borrarDatosAC();
                }
                else{
                    JOptionPane.showMessageDialog(null, "Seleccione al menos un participante.");
                }
            } catch (Exception ex) {
                Logger.getLogger(VentanaSecretario.class.getName()).log(Level.SEVERE, null, ex);
            }  
        }
        else{
            JOptionPane.showMessageDialog(null, "Faltan datos.");
        }
    }//GEN-LAST:event_AC_aceptarMouseClicked

    private void CC_aceptarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_CC_aceptarMouseClicked
        for(int i=0; i<CC_comi.getComponentCount(); i++){
            if(((JCheckBox)CC_comi.getComponent(i)).isSelected()){
                try {
                    usuario.cerrarComision(((JCheckBox)CC_comi.getComponent(i)).getMnemonic());
                } catch (Exception ex) {
                    Logger.getLogger(VentanaSecretario.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        }
        CCMouseClicked(null);
    }//GEN-LAST:event_CC_aceptarMouseClicked

    private void IP_editarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_IP_editarMouseClicked
        ocultarTodo();
        IP.setBackground(new java.awt.Color(38, 64, 82));
        IP.setForeground(Color.white);
        IP_nombre1.setText(usuario.getnombre());
        IP_apellidos1.setText(usuario.getapellidos());
        IP_dni1.setText(usuario.getdni());
        Pattern patron = Pattern.compile("(\\d+)/(\\d+)/(\\d+)");
        try{
            Matcher matcher = patron.matcher(usuario.getfecha_nacimiento());
            matcher.find();
            IP_dia1.setText(matcher.group(1));
            IP_mes1.setText(matcher.group(2));
            IP_año1.setText(matcher.group(3));
        }
        catch(Exception e){
        }
        IP_telefono1.setText(usuario.gettelefono()+"");
        patron = Pattern.compile("[^@]*");
        try{
            Matcher matcher = patron.matcher(usuario.getcorreo());
            matcher.find();
            IP_email1.setText(matcher.group(0));
        }
        catch(Exception e){
        }        
        IP_direccion1.setText(usuario.getdireccion());
        IP_universidad1.setText(usuario.getuniversidad());
        IP_estudios1.setText(usuario.getestudios());
        IP_nota1.setEnabled(false);
        IP_palabras1.setText(usuario.getpalabras());
        IP_entidad1.setText(usuario.getentidad_bancaria());
        IP_cc1.setText(usuario.getcuenta()+"");
                
        EditInfo.setVisible(true);
    }//GEN-LAST:event_IP_editarMouseClicked

    private void IP_editarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IP_editarActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_IP_editarActionPerformed

    private void IP_dominio1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IP_dominio1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_IP_dominio1ActionPerformed

    private void IP_guardarMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_IP_guardarMouseClicked
        try {
            usuario.setnombre(IP_nombre1.getText());
            usuario.setapellidos(IP_apellidos1.getText());
            IP_dni1.getText();
            usuario.setfecha_nacimiento(IP_dia1.getText()+"/"+IP_mes1.getText()+"/"+IP_año1.getText());
            usuario.setsexo(IP_sexo1.getSelectedItem().toString());
            usuario.setestado_civil(IP_estado1.getSelectedItem().toString());
            usuario.settelefono(Integer.parseInt(IP_telefono1.getText()));            
            usuario.setcorreo(IP_email1.getText()+IP_dominio1.getSelectedItem().toString());
            usuario.setdireccion(IP_direccion1.getText());
            usuario.setuniversidad(IP_universidad1.getText());
            usuario.setestudios(IP_estudios1.getText());
            IP_nota1.setText(usuario.getnota()+"");  IP_nota1.setEnabled(false);
            usuario.setpalabras(IP_palabras1.getText());
            usuario.setentidad_bancaria(IP_entidad1.getText());
            usuario.setnumero_cuenta(Integer.parseInt(IP_cc1.getText()));
            usuario.actualizar(IP_dni1.getText());            
            IPMouseClicked(null);
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(null, "Datos Incorrectos.");
            Logger.getLogger(VentanaSecretario.class.getName()).log(Level.SEVERE, null, ex);
        }
    }//GEN-LAST:event_IP_guardarMouseClicked

    private void IP_guardarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IP_guardarActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_IP_guardarActionPerformed

    private void IP_estado1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_IP_estado1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_IP_estado1ActionPerformed

    private void SalirMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_SalirMouseClicked
        try{
            synchronized(this){
                notify();
            }
        }
        catch(Exception e){
            System.out.println(e);
        }
    }//GEN-LAST:event_SalirMouseClicked

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /*
         * Set the Nimbus look and feel
         */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /*
         * If Nimbus (introduced in Java SE 6) is not available, stay with the
         * default look and feel. For details see
         * http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(VentanaSecretario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(VentanaSecretario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(VentanaSecretario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(VentanaSecretario.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /*
         * Create and display the form
         */
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new VentanaSecretario().setVisible(true);
            }
        });
    }
    
    private void ocultarTodo(){
        AbrirCom.setVisible(false);
        CerrarCom.setVisible(false);
        Esta.setVisible(false);
        EditInfo.setVisible(false);
        Inform.setVisible(false);
        NuevaConvo.setVisible(false);
        NuevoPro.setVisible(false);
        NuevoUsu.setVisible(false);
        nombre.setVisible(false);
        borrarDatosNC();
        borrarDatosNP();
        borrarDatosNU();
        borrarDatosAC();
        NP_convo.removeAll();
        AC_convo.removeAll();
        NU.setBackground(null);NU.setForeground(Color.BLACK);
        NP.setBackground(null);NP.setForeground(Color.BLACK);
        IP.setBackground(null);IP.setForeground(Color.BLACK);
        ES.setBackground(null);ES.setForeground(Color.BLACK);
        CC.setBackground(null);CC.setForeground(Color.BLACK);
        AC.setBackground(null);AC.setForeground(Color.BLACK);
        NC.setBackground(null);NC.setForeground(Color.BLACK);
    }
    
    public String getNC_nombre(){
        return NC_nombre.getText();
    }
    public String getNC_ruta(){
        return NC_ruta.getText();
    }
    public String getNC_org(){
        return NC_org.getText();
    }
    public int getNC_numCrit(){
        return (Integer)NCriterios.getValue();
    }
    private void borrarDatosNC(){
        NC_nombre.setText("");
        NC_ruta.setText("");
        NC_org.setText("");
        NCriterios.setValue(1);
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton AC;
    private javax.swing.JButton AC_aceptar;
    private javax.swing.JButton AC_borrar;
    private javax.swing.JPanel AC_convo;
    private javax.swing.JSpinner AC_fecha;
    private javax.swing.JTextField AC_lugar;
    private javax.swing.JButton AC_sel;
    private javax.swing.JPanel AC_users;
    private javax.swing.JPanel AbrirCom;
    private javax.swing.JButton CC;
    private javax.swing.JButton CC_aceptar;
    private javax.swing.JPanel CC_comi;
    private javax.swing.JPanel Caja;
    private javax.swing.JPanel CerrarCom;
    private javax.swing.JButton ES;
    private javax.swing.JPanel EditInfo;
    private javax.swing.JPanel Esta;
    private javax.swing.JButton IP;
    private javax.swing.JTextField IP_apellidos;
    private javax.swing.JTextField IP_apellidos1;
    private javax.swing.JTextField IP_año1;
    private javax.swing.JTextField IP_cc;
    private javax.swing.JTextField IP_cc1;
    private javax.swing.JTextField IP_dia1;
    private javax.swing.JTextField IP_direccion;
    private javax.swing.JTextField IP_direccion1;
    private javax.swing.JTextField IP_dni;
    private javax.swing.JTextField IP_dni1;
    private javax.swing.JComboBox IP_dominio1;
    private javax.swing.JButton IP_editar;
    private javax.swing.JTextField IP_email;
    private javax.swing.JTextField IP_email1;
    private javax.swing.JTextField IP_entidad;
    private javax.swing.JTextField IP_entidad1;
    private javax.swing.JTextField IP_estado;
    private javax.swing.JComboBox IP_estado1;
    private javax.swing.JTextField IP_estudios;
    private javax.swing.JTextField IP_estudios1;
    private javax.swing.JTextField IP_fecha;
    private javax.swing.JButton IP_guardar;
    private javax.swing.JTextField IP_mes1;
    private javax.swing.JTextField IP_nombre;
    private javax.swing.JTextField IP_nombre1;
    private javax.swing.JTextField IP_nota;
    private javax.swing.JTextField IP_nota1;
    private javax.swing.JTextField IP_palabras;
    private javax.swing.JTextField IP_palabras1;
    private javax.swing.JTextField IP_sexo;
    private javax.swing.JComboBox IP_sexo1;
    private javax.swing.JTextField IP_telefono;
    private javax.swing.JTextField IP_telefono1;
    private javax.swing.JTextField IP_universidad;
    private javax.swing.JTextField IP_universidad1;
    private javax.swing.JPanel Inform;
    private javax.swing.JButton NC;
    private javax.swing.JTextField NC_nombre;
    private javax.swing.JTextField NC_org;
    private javax.swing.JTextField NC_ruta;
    private javax.swing.JSpinner NCriterios;
    private javax.swing.JButton NP;
    private javax.swing.JButton NP_aceptar;
    private javax.swing.JComboBox NP_area;
    private javax.swing.JPanel NP_convo;
    private javax.swing.JTextField NP_nombre;
    private javax.swing.JButton NP_nuevopro;
    private javax.swing.JTextField NP_ruta;
    private javax.swing.JButton NP_selec;
    private javax.swing.JButton NU;
    private javax.swing.JButton NU_aceptar;
    private javax.swing.JTextField NU_apellidos;
    private javax.swing.JButton NU_borrar;
    private javax.swing.JTextField NU_dni;
    private javax.swing.JComboBox NU_dominio;
    private javax.swing.JTextField NU_email;
    private javax.swing.JTextField NU_nombre;
    private javax.swing.JComboBox NU_rol;
    private javax.swing.JPanel NuevaConvo;
    private javax.swing.JPanel NuevoPro;
    private javax.swing.JPanel NuevoUsu;
    private javax.swing.JPanel Opciones;
    private javax.swing.JButton Salir;
    private javax.swing.ButtonGroup bG;
    private javax.swing.ButtonGroup bGC;
    private javax.swing.JLabel bienvenida;
    private javax.swing.JButton jButton10;
    private javax.swing.JButton jButton11;
    private javax.swing.JButton jButton8;
    private javax.swing.JButton jButton9;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel43;
    private javax.swing.JLabel jLabel44;
    private javax.swing.JLabel jLabel45;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel47;
    private javax.swing.JLabel jLabel48;
    private javax.swing.JLabel jLabel49;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLabel jLabel51;
    private javax.swing.JLabel jLabel52;
    private javax.swing.JLabel jLabel53;
    private javax.swing.JLabel jLabel54;
    private javax.swing.JLabel jLabel55;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JSeparator jSeparator4;
    private javax.swing.JSeparator jSeparator5;
    private javax.swing.JSeparator jSeparator6;
    private javax.swing.JPanel nombre;
    // End of variables declaration//GEN-END:variables

    public Plantilla getPlantilla() {
        return pl;
    }
    
    public int getIP_dni(){
        return Integer.parseInt(IP_dni1.getText());
    }

    private void borrarDatosNP() {
        NP_nombre.setText("");
        NP_ruta.setText("");
    }

    public String getNP_ruta() {
        return NP_ruta.getText();
    }

    public String getNP_area() {
        return (String)NP_area.getSelectedItem();
    }

    public int getNP_convocatoria() {
        return bG.getSelection().getMnemonic();
    }

    public String getNP_nombre() {
        return NP_nombre.getText();
    }

    public String getNU_dni() {
        return NU_dni.getText();
    }

    public String getNU_email() {
        return NU_email.getText()+(String)NU_dominio.getSelectedItem();
    }

    public String getNU_rol() {
        return (String)NU_rol.getSelectedItem();
    }

    public String getNU_nombre() {
        return NU_nombre.getText();
    }
    public String getNU_apellidos() {
        return NU_apellidos.getText();
    }

    public void borrarDatosNU() {
        NU_nombre.setText("");
        NU_apellidos.setText("");
        NU_dni.setText("");
        NU_email.setText("");
    }

    public String getAC_fecha() throws ParseException {
        SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy' 'hh:mm");
        return format.format(AC_fecha.getValue());
    }

    public String getAC_lugar() {
        return AC_lugar.getText();
    }

    public int getAC_conv() {
        return bG.getSelection().getMnemonic();
    }

    private void borrarDatosAC() {
        AC_users.removeAll();
        AC_users.updateUI();
        AC_lugar.setText("");
    }

}
